package cn.com.scitc.licenseplateback.controller;

import cn.com.scitc.licenseplateback.dao.MemberSetMealDao;
import cn.com.scitc.licenseplateback.model.MemberSetMealEntity;
import com.alibaba.fastjson.JSONObject;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class MemberCenter {

    /**
     * 日志
     */
    private Log log = LogFactory.getLog(getClass().getName());

    /**
     * 会员套餐 CRUD
     */
    @Autowired
    private MemberSetMealDao memberSetMealDao;

    @PostMapping("/allMemberSetMeal")
    private String allMemberSetMeal(){
        Iterable<MemberSetMealEntity> list = memberSetMealDao.findAll();
        return JSONObject.toJSON(list).toString();
    }



}
